﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProcessingUserSelected.aspx.cs" Inherits="CRM.Web.Pop.ProcessingUserSelected" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/pop.css" %>" rel="stylesheet" type="text/css" />
    
    
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript" >
        $(document).ready(function() {
            $(".cbAll").live("click", function() {
                if ($(this).children().eq(0).attr("checked") == "checked") {
                    $(".cbItem").children().each(function() {
                        $(this).attr("checked", "checked");
                    });
                }
                else {
                    $(".cbItem").children().each(function() {
                        $(this).attr("checked", false);
                    });
                }
            });
        });
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="派工人员选择" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMainPop">
    <div style="width: 100%">
        <div class="listdiv">
        <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
            <tr>
                <td class="content"><div style="width: 180px; " class="nowrap">
                    <asp:Button ID="btnSelected" runat="server" Text="确 定" CommandName="Search" CssClass="btn title_cx"
                                    OnClick="btnSelected_Click" />
                    <input id="btnClose" type="button" value="关 闭" class="btn " onclick="closeSelf();" />                    
                    </div>
                </td>
            </tr>
		</table>
        <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False"  
       SortExpressionValue="ROLENAME">
        <Columns> 
            <asp:TemplateField>
                <HeaderTemplate>			                
                    <asp:CheckBox ID="cbAll" CssClass="cbAll" runat="server"  />
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="cbItem" CssClass="cbItem" runat="server" />
                </ItemTemplate>
                <ItemStyle Width="28px" HorizontalAlign="Center" />
                <HeaderStyle Width="28px" HorizontalAlign="Left"  />
            </asp:TemplateField>
            <asp:BoundField DataField="USERNAME" HeaderText="姓名"   SortExpression="USERNAME" >
            <HeaderStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="MOBILEPHONE" HeaderText="手机"  SortExpression="MOBILEPHONE"  >
            <HeaderStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="LOGINNAME" HeaderText="登录名"  SortExpression="LOGINNAME"  >
            <HeaderStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="ROLENAME" HeaderText="角色"  SortExpression="ROLENAME"  >
            <HeaderStyle Width="100px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>	
        <RowStyle CssClass="row" />
        <AlternatingRowStyle CssClass="row2" />
        <HeaderStyle CssClass="header" />	
        <PagerStyle CssClass="pager" />	
    </dp:WebGridView>   
    </div>
    </div>
    </div>
    </form>
</body>
</html>
